﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class MachineControlStateChangedMessage : BaseTibcoMessage<MachineControlStateChangedMessageBody>
    {
        public MachineControlStateChangedMessage()
        {

        }
        public MachineControlStateChangedMessage(MachineControlStateChangedMessageBody body, string inboxName = "", string listener = "") : base("MachineControlStateChanged", body, inboxName, listener)
        {
        }
    }


    public class MachineControlStateChangedMessageBody : MachineEventBase
    {
        public MachineControlStateChangedMessageBody()
        {
        }

        public MachineControlStateChangedMessageBody(string machineName, string machineControlState)
        {
            MachineName = machineName;
            MachineControlState = machineControlState;
            EventUser = machineName;
        }

        [XmlElement("MACHINECONTROLSTATE")]
        public string MachineControlState { get; set; }

    }
}
